import React from 'react'
import { useLocation } from 'react-router-dom'
import qs from 'qs'

export default function Music() {
  const location = useLocation();
  // console.log(qs.parse(location.search.split("?")[1]));

  const { name, age } = qs.parse(location.search.split("?")[1])
  return (
    <div>
      <h3>音乐</h3>
      <p>name:{name}</p>
      <p>age:{age}</p>
    </div>
  )
}
